package com.duobaoyu.dby.supply.common.biz.remote.dto.refund;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName AfterSaleAttributesDTO
 * @Description 查询商品售后权益
 * @createTime 15:03:00 2022/06/05
 */
@Data
public class AfterSaleAttributesDTO implements Serializable {

    private static final long serialVersionUID = 8687054226987882802L;
    /**
     * 商品sku编号
     */
    @NotNull(message = "商品信息必填")
    @Size(min = 1, message = "商品信息必填")
    @Valid
    private List<Sku> skus;

    @Data
    public static class Sku {

        /**
         * 供应链订单子单号
         */
        @NotBlank(message = "供应链订单子单号必填")
        private String orderSn;

        @NotBlank(message = "skuCode必填")
        private String skuCode;
    }
}
